#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H
#include <QWidget>
#include"gameview.h"
#include"fileprocess.h"

namespace Ui {
class LoginWidget;
}

class LoginWidget : public QWidget
{
    Q_OBJECT

public:
    explicit LoginWidget(QWidget *parent = nullptr);
    ~LoginWidget();

    QString address="D:/Qtcase/text";

signals:
    void gameSignal(QString,QString); //信号

private slots:
    void on_login_clicked();

    void on_visitor_clicked();

    void on_register_2_clicked();


    void on_confirmLog_clicked();

    void on_confirmReg_clicked();

private:
    Ui::LoginWidget *ui;

    GameView gameview;
    QList<QString> fileContent;
    QString logAddress="D:/Qtcase/2048Game/login.txt";  //账号和密码存储位置

};

#endif // LOGINWIDGET_H
